package cn.com.twoke.game.common.entity.message;

import cn.com.twoke.game.common.constants.MessageType;

public class GameDataMessage<T extends Object> extends Message{

    private T data;
    private String gameId;
    private String roomId;

    public GameDataMessage(T data, String gameId, String roomId) {
        this.data = data;
        this.gameId = gameId;
        this.roomId = roomId;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getGameId() {
        return gameId;
    }

    public void setGameId(String gameId) {
        this.gameId = gameId;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    @Override
    public MessageType getType() {
        return MessageType.GAME_DATA;
    }


}
